package com.cpit.platform.dao;

import java.util.Collection;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.cpit.platform.dto.UserToSubSystemUser;

public interface UserToSubSystemUserRepository extends JpaRepository<UserToSubSystemUser, Long> {
	@SuppressWarnings("unchecked")
	UserToSubSystemUser save(UserToSubSystemUser uToSs);
	void delete(UserToSubSystemUser uToSs);
	void deleteByUserId(Integer userId);
	UserToSubSystemUser findById(Integer id);
	List<UserToSubSystemUser> findByUserId(Integer userId);
	
	List<UserToSubSystemUser> findByUserIdIn(Collection<Integer> uIds);
	
}
